@echo off
echo Testing FFmpeg configuration...
echo.

echo 1. Testing FFmpeg direct path:
"D:\Program Files\ffmpeg\bin\ffmpeg.exe" -version
if %errorlevel% equ 0 (
    echo ✓ FFmpeg found at direct path
) else (
    echo ✗ FFmpeg not found at direct path
)
echo.

echo 2. Testing FFmpeg in PATH:
ffmpeg -version 2>nul
if %errorlevel% equ 0 (
    echo ✓ FFmpeg found in PATH
) else (
    echo ✗ FFmpeg not found in PATH
)
echo.

echo 3. Testing with environment variable:
if defined FFMPEG_PATH (
    echo FFMPEG_PATH is set to: %FFMPEG_PATH%
    "%FFMPEG_PATH%" -version
    if %errorlevel% equ 0 (
        echo ✓ FFmpeg works with environment variable
    ) else (
        echo ✗ FFmpeg doesn't work with environment variable
    )
) else (
    echo FFMPEG_PATH environment variable is not set
)

echo.
echo Test completed.
pause